package com.wang.lottery.domain.rule.model.aggregates;

import com.wang.lottery.domain.rule.model.vo.TreeNodeVO;
import com.wang.lottery.domain.rule.model.vo.TreeRootVO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * @author wjh
 * @create 2023-11-11 15:27
 * 规则树聚合，包含树根信息以及该树所有节点信息，节点信息又包含茎的信息
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TreeRuleRich {
    /**树根信息*/
    private TreeRootVO treeRoot;
    /**树节点ID -> 子节点*/
    private Map<Long, TreeNodeVO> treeNodeMap;
}
